package com.beiming.libra.dao;

import com.beiming.libra.base.MyMapper;
import com.beiming.libra.domain.ArbitrationBookAttachment;
import com.beiming.libra.domain.dto.responsedto.DocmentInfoResponseDTO;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @Auther: tyrion
 * @Date: 2018/6/11 09:50
 * @Description: 文书上传DAO层
 */
@Repository
public interface ArbitrationBookAttachmentMapper extends MyMapper<ArbitrationBookAttachment> {

  /**
   * 根据caseId拿到文书相关内容
   * @param caseId
   */
  List<DocmentInfoResponseDTO> getDocmentInfo(String caseId);

  /**
   * 根据caseId和文书类型删除相应文书
   */
  void deleteBycaseIdAndType(@Param("caseId") String caseId, @Param("docType") String docType);

  void insertBookAttachment(ArbitrationBookAttachment aba);
}